package org.jeecg.modules.bv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 票据使用
 * @Author: jeecg-boot
 * @Date:   2022-03-09
 * @Version: V1.0
 */
@ApiModel(value="mws_t_bv_vouchers对象", description="票据使用")
@Data
@TableName("mws_t_bv_vouchers")
public class BvVouchers implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**入库ID*/
	@Excel(name = "入库ID", width = 15)
    @ApiModelProperty(value = "入库ID")
    private java.lang.String storageId;
	/**票据类型*/
	@Excel(name = "票据类型", width = 15, dicCode = "bill_type_id")
    @Dict(dicCode = "bill_type_id")
    @ApiModelProperty(value = "票据类型")
    private java.lang.String billTypeId;
	/**票据版本号*/
	@Excel(name = "票据版本号", width = 15, dictTable = "mws_t_bv_versions", dicText = "version_no", dicCode = "id")
    @Dict(dictTable = "mws_t_bv_versions", dicText = "version_no", dicCode = "id")
    @ApiModelProperty(value = "票据版本号")
    private java.lang.String versionId;
	/**发票号*/
	@Excel(name = "发票号", width = 15)
    @ApiModelProperty(value = "发票号")
    private java.math.BigDecimal voucherNo;
	/**发票金额*/
	@Excel(name = "发票金额", width = 15)
    @ApiModelProperty(value = "发票金额")
    private java.math.BigDecimal money;
	/**开票人*/
	@Excel(name = "开票人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "开票人")
    private java.lang.String operatorId;
	/**领用人*/
	@Excel(name = "领用人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "领用人")
    private java.lang.String getOperatId;
	/**账务日期*/
	@Excel(name = "账务日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "账务日期")
    private java.util.Date financialDate;
	/**操作日期*/
	@Excel(name = "操作日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "操作日期")
    private java.util.Date operatedTime;
	/**重打次数*/
	@Excel(name = "重打次数", width = 15)
    @ApiModelProperty(value = "重打次数")
    private java.lang.Integer reprintTimes;
	/**输出方式*/
	@Excel(name = "输出方式", width = 15, dicCode = "biil_output_type")
    @Dict(dicCode = "biil_output_type")
    @ApiModelProperty(value = "输出方式")
    private java.lang.String biilOutputType;
    /**票据状态
     * 入库	01
     * 占用	02
     * 开票	03
     * 报废	05
     * */
	@Excel(name = "票据状态", width = 15, dicCode = "bill_status_id")
    @Dict(dicCode = "bill_status_id")
    @ApiModelProperty(value = "票据状态")
    private java.lang.String billStatusId;
	/**补打标志*/
	@Excel(name = "补打标志", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "补打标志")
    private java.lang.Integer isReprint;
	/**是否存档*/
	@Excel(name = "是否存档", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否存档")
    private java.lang.Integer isArchived;
	/**打印方式*/
	@Excel(name = "打印方式", width = 15, dicCode = "bill_print_type")
    @Dict(dicCode = "bill_print_type")
    @ApiModelProperty(value = "打印方式")
    private java.lang.String billPrintType;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
	/**缴费id*/
	@Excel(name = "缴费id", width = 15)
    @ApiModelProperty(value = "缴费id")
    private java.lang.String paymentId;
	/**上一次发票状态*/
	@Excel(name = "上一次发票状态", width = 15)
    @ApiModelProperty(value = "上一次发票状态")
    private java.lang.String preStatusId;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
	/**部门编码*/
    @ApiModelProperty(value = "部门编码")
    private java.lang.String sysOrgCode;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
    private java.lang.Integer delFlag;
	/**租户网点*/
	@Excel(name = "租户网点", width = 15)
    @ApiModelProperty(value = "租户网点")
    private java.lang.Integer tenantId;

    /**缴费账户*/
    private transient String accCode;
    /**原版本号*/
    private transient String oldVersion;
    /**原票据号*/
    private transient String oldVoucher;

    private transient String createTimeBegin;
    private transient String createTimeEnd;

}
